DeleteCheckPointTemplateRecord

SoftwareShield CheckPoint™ License Server > CheckPoint™ License Server Interfaces > CheckPoint_Webservice_References > DeleteCheckPointTemplateRecord

## DeleteCheckPointTemplateRecord

The DeleteCheckPointTemplateRecord function will delete a return template in the database.

###### Syntax

TRecordResponse * DeleteCheckPointTemplateRecord( TCheckPointReturnTemplate * ACheckPointReturnTemplate, BSTR ASessionID ) ;

###### Parameters

ACheckPointReturnTemplate

[IN] This is a TCheckPointReturnTemplate class which defines which template should be deleted. The fields of interest are:

- ReturnTemplateID- this field should contain the Template ID of the template to be deleted.

ASessionID

[IN] This is the session ID of the logged in user.

###### Remarks

This function does not remove the Return Template entry from the database. Each Return Template has a deleted field associated to them. This function will set the deleted field to true. This will allow the recovery of accidental deletion by manually entering the database and set the flag back to false.

Only administrators are allowed to use this function.

###### Return Value

Returns the custom class TRecordResponse. The fields of interest that is related to this method are:

- Success- True will be returned if this function was successful, otherwise false will be returned.

- ErrorMessage- if an error occurred, the associated error message can be found in this field.

###### Function Information

Exposed By Interface: | "ICheckPointService"
Exposed In ISAPI DLL: | "checkpoint.dll"